
correct_username = 'Kate'
correct_password = '666666'
for attempt in range(3):
    username = input()
    password = input()
    if username == correct_username and password == correct_password:
        print('登录成功！')
        exit()  
print("3次用户名或者密码均有误！退出程序。")